package k8s_cluster

import (
	"github.com/gin-gonic/gin"
	v1 "k8soperation/internal/app/controllers/api/v1/k8s_cluster"
)

type K8sRouter struct{}

func NewK8sRouter() *K8sRouter {
	return &K8sRouter{}
}

func (r *K8sRouter) Inject(router *gin.RouterGroup) {
	kc := v1.NewK8sClusterController()
	router.POST("/cluster/create", kc.Create)
	router.POST("/cluster/update", kc.Update)
	router.POST("/cluster/delete", kc.Delete)
	router.GET("/cluster/list", kc.List)
	router.POST("/cluster/init", kc.Init)
}
